package TwoDay;

import java.util.Scanner;

public class Num4 {
//    public static void main(String[] args) {
//        int res;
//        Scanner scanner = new Scanner(System.in);
//        System.out.printf("请输入任意三个数");
//        int a = scanner.nextInt();
//        int b = scanner.nextInt();
//        int c = scanner.nextInt();
//        System.out.printf("按从小到大排列：");
//        if (a>b){
//            res=a;
//            a=b;
//            b=res;
//        }
//        if (a>c){
//            res=a;
//            a=c;
//            c=res;
//        }
//        if (b>c){
//            res=b;
//            b=c;
//            c=res;
//        }
//        System.out.println(+a+"<"+b+"<"+c);
//    }
public static void main(String[] args) {
    int res;
    Scanner scanner = new Scanner(System.in);
    System.out.printf("请输入任意三个数");
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    System.out.printf("按从小到大排列：");
    if (a<b&&a<c){
        if (b<c) {
            System.out.printf(a + "<" + b + "<" + c);
        }else {
            System.out.printf(a + "<" + c + "<" + b);
        }
    }
    if (b<a&&b<c){
        if (a<c) {
            System.out.printf(b + "<" + a + "<" + c);
        }else {
            System.out.printf(b + "<" + c + "<" + a);
        }
    }
    if (c<a&&c<b){
        if (a<b) {
            System.out.printf(c + "<" + a + "<" + b);
        }else {
            System.out.printf(c + "<" + b + "<" + a);
        }
    }
}
}
